package com.aboo.web.common.domain;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * shiro存储的用户信息
 * @author 娄安
 * @date 2013-5-30
 */
public class ShiroUser implements Serializable {

	private static final long serialVersionUID = -4067582783646096288L;
	
	private Long userId;
	private String userName;
	private String realName;
	private String password;
	
	public ShiroUser(Long userId, String userName, String realName, String password) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.realName = realName;
		this.password = password;
	}
	/**
	 * 用户编号
	 * @author 娄安
	 * @return
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 用户编号
	 * @author 娄安
	 * @param userId
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 用户登录名
	 * @author 娄安
	 * @return
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * 用户登录名
	 * @author 娄安
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * 用户真实名
	 * @author 娄安
	 * @return
	 */
	public String getRealName() {
		return realName;
	}
	/**
	 * 用户真实名
	 * @author 娄安
	 * @param realName
	 */
	public void setRealName(String realName) {
		this.realName = realName;
	}
	/**
	 * 用户密码
	 * @author 娄安
	 * @return
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * 用户密码
	 * @author 娄安
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
